$(function() {
// start date for opening dialcodes

$(".ajax-loader" ).hide();

$('#received-date').datepick({ 
    defaultDate: currentDate, selectDefaultDate: true,
    maxDate: currentDate, dateFormat: $.datepick.ISO_8601 ,changeMonth: false,
		minDate: minDate, dateFormat: $.datepick.ISO_8601 ,changeMonth: false});


	 $( "#dialog_csv" ).dialog({
			resizable: true,
			height: 400,
			width: 500,
			modal: true,
			buttons: {
				OK: function() {
					
					insert_csv_data(data);
					
					$( this ).dialog( "close" );
					//window.location.refresh();
				},
				Cancel: function() {
					$("#response").html('');
					$("#response").hide();
					$( this ).dialog( "close" );
				}
			}
		});

});
